import { defineContentConfig, defineCollection } from "@nuxt/content";

export default defineContentConfig({

  // 内容集合配置
  collections: {
    // Java 基础
    java: defineCollection({
      type: "page",
      source: "1.java/**/*.md",
    }),
    navigation: defineCollection({
      type: "page",
      source: "**",
    }),
    nuxt:defineCollection({
      type: "page",
      source: "2.nuxt/**/*.md",
    }),
    // 业务分片
    businessfragmentation: defineCollection({
      type: "page",
      source: {
        include: "3.businessfragmentation/**/*.md",
      },
    }),
    // Java Web
    javaweb: defineCollection({
      type: "page",
      source: {
        include: "4.javaweb/**/*.md",
      },
    }),
    // 微服务
    microservice: defineCollection({
      type: "page",
      source: {
        include: "5.microService/**/*.md",
      },
    }),
    // 常用框架
    framework: defineCollection({
      type: "page",
      source: {
        include: "6.commonframework/**/*.md",
      },
    }),
    // 工具部署
    tools: defineCollection({
      type: "page",
      source: {
        include: "7.toolDeployment/**/*.md",
      },
    }),
    // 数据存储
    storage: defineCollection({
      type: "page",
      source: {
        include: "8.DataStorage/**/*.md",
      },
    }),
    // 面试
    interview: defineCollection({
      type: "page",
      source: {
        include: "9.jobInterview/**/*.md",
      },
    }),
  },
});
